package com.freeLearning.boot.system.model.entity;

import cn.hutool.json.JSON;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.freeLearning.boot.common.base.BaseEntity;
import lombok.Data;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;
import java.util.List;

@TableName(value = "sys_school",autoResultMap = true)
@Getter
@Setter
public class School extends BaseEntity {



    @Schema(description = "学校名称")
    private String name;

    @Schema(description = "学校Logo的URL地址")
    private String logo;

    @Schema(description = "学校地址")
    private String address;

    @Schema(description = "联系电话")
    private String phone;

    @Schema(description = "电子邮箱")
    private String email;

    @Schema(description = "学校官网")
    private String website;

    @Schema(description = "学校等级")
    private String level;

    @Schema(description = "学校等级str")
    private String levelStr;

    @Schema(description = "地址ID列表（JSON格式）")
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<Long> addressIds;


    @TableLogic
    private Integer isDeleted;

    @Schema(description = "国家")
    private String country;

    @Schema(description = "国家str")
    private String countryStr;

    @Schema(description = "省份")
    private String province;

    @Schema(description = "省份str")
    private String provinceStr;

    @Schema(description = "城市")
    private String city;

    @Schema(description = "城市str")
    private String cityStr;

    @Schema(description = "区/县")
    private String district;

    @Schema(description = "区/县str")
    private String districtStr;
}